package edu.nbut.hotel.model.dao;

import edu.nbut.hotel.model.entity.pojo.Guest;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface GuestDao {

    List<Guest> queryAll();

    Guest queryById(int id);
    List<Guest> queryByName(String name);
    Guest queryByIdCard(String idCard);
    Guest queryByPhone(String contact);
    boolean addGuest(Guest guest);
    boolean updateGuest(Guest guest);
    boolean deleteGuestById(int guestId);
}
